#include "dominion.h"
#include "dominion_helpers.h"
#include <stdio.h>
#include <assert.h>
 
int main() {
    int player1 = 0;
    int card, pccount, hcount, ocount, hpos, dcard;
    struct gameState G;
    int kingdom_cards[10] = {adventurer, council_room, feast, gardens, mine,
        remodel, smithy, village, baron, great_hall};
 
    initializeGame(2, kingdom_cards, 1, &G);
 
    printf("Testing Outpost card.\n");
 
    card = outpost;
    hcount = G.handCount[player1];
    hpos = 0;
    dcard = G.hand[player1][hpos];
    pccount = G.playedCardCount;
    ocount = G.outpostPlayed;
 
    assert(cardEffect(card, 0, 0, 0, &G, hpos, 0) == 0);
    assert(G.outpostPlayed == ocount+1);
    assert(G.playedCardCount == pccount+1);	
    assert(G.handCount[player1] == hcount-1);
    assert(G.playedCards[0] == dcard);
 
    printf("Outpost: All tests passed!\n");

	return 0;
}
